package com.woniuxy.store.core.service.impl;

import com.woniuxy.store.core.model.PlAddress;
import com.woniuxy.store.core.model.PlOrderitem;
import com.woniuxy.store.core.mapper.PlOrderitemMapper;
import com.woniuxy.store.core.service.PlOrderitemService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.woniuxy.store.core.vo.OrderItemVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gmx
 * @since 2021-07-05
 */
@Service
public class PlOrderitemServiceImpl extends ServiceImpl<PlOrderitemMapper, PlOrderitem> implements PlOrderitemService {

    @Resource
    private PlOrderitemMapper orderitemMapper;

    @Override
    public List<OrderItemVo> selectAll(Integer storeId) {
        return orderitemMapper.selectAll(storeId);
    }

    @Override
    public List<OrderItemVo> selectOrderItemByStoreId(Integer storeId) {
        return orderitemMapper.selectOrderItemByStoreId(storeId);
    }

    @Override
    public List<OrderItemVo> selectByStoreIdFirstId(Integer storeId, Integer firstId) {
        return orderitemMapper.selectByStoreIdFirstId(storeId,firstId);
    }



    @Override
    public List<OrderItemVo> selectUnpaid(Integer storeId) {
        return orderitemMapper.selectUnpaid(storeId);
    }

    @Override
    public List<OrderItemVo> selectUnChecked(Integer storeId) {
        return orderitemMapper.selectUnChecked(storeId);
    }

    @Override
    public List<OrderItemVo> selectUnServiced(Integer storeId) {
        return orderitemMapper.selectUnServiced(storeId);
    }

    @Override
    public List<OrderItemVo> selectUnEvaluate(Integer storeId) {
        return orderitemMapper.selectUnEvaluate(storeId);
    }

    @Override
    public List<OrderItemVo> selectUnAfterSale(Integer storeId) {
        return orderitemMapper.selectUnAfterSale(storeId);
    }

    @Override
    public List<OrderItemVo> selectFinished(Integer storeId) {
        return orderitemMapper.selectFinished(storeId);
    }

    @Override
    public List<OrderItemVo> selectDay(Integer storeId) {
        return orderitemMapper.selectDay(storeId);
    }

    @Override
    public List<OrderItemVo> selectWeek(Integer storeId) {
        return orderitemMapper.selectWeek(storeId);
    }

    @Override
    public List<OrderItemVo> selectMonth(Integer storeId) {
        return orderitemMapper.selectMonth(storeId);
    }

    @Override
    public List<OrderItemVo> selectSeason(Integer storeId) {
        return orderitemMapper.selectSeason(storeId);
    }

    @Override
    public List<PlAddress> selectAddress(Integer orderitemId) {
        return orderitemMapper.selectAddress(orderitemId);
    }
}
